using SmartBoard.Book.Model;

namespace SmartBoard.Book.Commands
{
    public class PrintBookAction:BookUIActionBase
    {
        public PrintBookAction(BookManager bookManager, IBookUIManager bookUIManager):base(bookManager, bookUIManager)
        { }

        public override void Execute(object parameter)
        {
            _bookManager.Book.Print();
        }

        public override bool CanExecute(object parameter)
        {
            return _bookManager.Book != null;
        }
    }
}